package com.tuojiahr.init;

import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.tuojiahr.global.Constants;


public class InitServlet extends HttpServlet implements Servlet {

	private static final long serialVersionUID = 1L;

	//类初始化
	public InitServlet() {		
		super();
	}
	
	//初始化方法
	public void init() throws ServletException { 
		try {			
			InitConfig configAcc = new InitConfig();			
			//初始化日志
			configAcc.initLog();
			
		} catch (Exception e) {
			Constants.ExceptionLog.error("初始化参数出错，请确保参数配置正确：",e);
		}
    }	
}